package org.ctu.cusc.hadoop;

public class StubTest {
	
}

//import org.apache.hadoop.io.IntWritable;
//import org.apache.hadoop.io.DoubleWritable;
//import org.apache.hadoop.io.LongWritable;
//import org.apache.hadoop.io.Text;
//import org.apache.hadoop.mrunit.mapreduce.MapDriver;
//import org.apache.hadoop.mrunit.mapreduce.MapReduceDriver;
//import org.apache.hadoop.mrunit.mapreduce.ReduceDriver;
//import static org.junit.Assert.fail;
//import org.junit.Before;
//import org.junit.Test;
//
//public class StubTest {
//
//  /*
//   * Declare harnesses that let you test a mapper, a reducer, and
//   * a mapper and a reducer working together.
//   */
//  MapDriver<LongWritable, Text, Text, IntWritable> mapDriver;
//  ReduceDriver<Text, IntWritable, Text, DoubleWritable> reduceDriver;
//  MapReduceDriver<LongWritable, Text, Text, IntWritable, Text, DoubleWritable> mapReduceDriver;
//
//  /*
//   * Set up the test. This method will be called before every test.
//   */
//  @Before
//  public void setUp() {
//
//    /*
//     * Set up the mapper test harness.
//     */
//    StubMapper mapper = new StubMapper();
//    mapDriver = new MapDriver<LongWritable, Text, Text, IntWritable>();
//    mapDriver.setMapper(mapper);
//
//    /*
//     * Set up the reducer test harness.
//     */
//    StubReducer reducer = new StubReducer();
//    reduceDriver = new ReduceDriver<Text, IntWritable, Text, DoubleWritable>();
//    reduceDriver.setReducer(reducer);
//
//    /*
//     * Set up the mapper/reducer test harness.
//     */
//    mapReduceDriver = new MapReduceDriver<LongWritable, Text, Text, IntWritable, Text, DoubleWritable>();
//    mapReduceDriver.setMapper(mapper);
//    mapReduceDriver.setReducer(reducer);
//  }
//
//  /*
//   * Test the mapper.
//   */
//  @Test
//  public void testMapper() {
//
//    /*
//     * For this test, the mapper's input will be "1 cat cat dog" 
//     * TODO: implement
//     */
//    fail("Please implement test.");
//
//  }
//
//  /*
//   * Test the reducer.
//   */
//  @Test
//  public void testReducer() {
//
//    /*
//     * For this test, the reducer's input will be "cat 1 1".
//     * The expected output is "cat 2".
//     * TODO: implement
//     */
//    fail("Please implement test.");
//
//  }
//
//
//  /*
//   * Test the mapper and reducer working together.
//   */
//  @Test
//  public void testMapReduce() {
//
//    /*
//     * For this test, the mapper's input will be "1 cat cat dog" 
//     * The expected output (from the reducer) is "cat 2", "dog 1". 
//     * TODO: implement
//     */
//    fail("Please implement test.");
//
//  }
//}
